package com.boarsoft.message.store.file;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.boarsoft.message.bean.Message;
import com.boarsoft.message.bean.MessageEntity;
import com.boarsoft.message.bean.MessageQueryParam;
import com.boarsoft.message.store.MessageRoller;

/**
 * 向文件中追加日志，并在单独的文件中记录读取位置
 * 
 * @author Mac_J
 *
 */
public class PartionFileAppender implements MessageRoller {

	@Override
	public void init() throws Exception {
		// TODO Auto-generated method stub

	}

	@Override
	public String append(Message m) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void close() {
		// TODO Auto-generated method stub

	}

	@Override
	public MessageEntity read(String id) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getPageSize() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<MessageEntity> query(MessageQueryParam mqp) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Map<String, Object>> count(MessageQueryParam mqp) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<MessageEntity> reload(Date before, Date after, short status, int limit) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int truncate(Date before) throws Exception {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public long update(String id, short status, int tried, String memo) throws Exception {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public long update(String id, String recipient, int tried, short status, String memo) throws Exception {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public long update(Message m, String memo) throws Exception {
		// TODO Auto-generated method stub
		return 0;
	}
}
